﻿using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Himall.Entity.Config
{
   public class CouponSendByRegisterDetailedInfoConfig : EntityTypeConfiguration<CouponSendByRegisterDetailedInfo>
    {
        public CouponSendByRegisterDetailedInfoConfig()
        {
            ToTable("Himall_CouponSendByRegisterDetailed");

            HasRequired(x => x.Himall_Coupon).WithMany(x => x.Himall_CouponSendByRegisterDetailed).HasForeignKey(x => x.CouponId);
            HasRequired(x => x.Himall_CouponSendByRegister).WithMany(x => x.Himall_CouponSendByRegisterDetailed).HasForeignKey(x => x.CouponRegisterId);
        }
    }
}
